interface Agent {
    id: number;
    uid: number;
    name: string;
    phone: string;
    address: string;
    company_fee_rate: string;
    cashed_out: string;
    pending_withdrawal_amount: string;
    total_income: string;
    withdrawal_amount: string;
    created_at: string;
    updated_at: string;
}

interface Store {
    id: number;
    user_id: number;
    name: string;
    person_name: string;
    phone: string | null;
    address: string;
    agent_id: number | null;
    agent_profit: string | null;
    cashed_out: string;
    latitude: number;
    longitude: number;
    logo: string;
    pending_withdrawal_amount: string;
    profit: number;
    status: number;
    total_income: string;
    withdrawal_amount: string;
    created_at: string;
    updated_at: string;
}

interface UserInfo {
    id: number;
    openid: string;
    unionid: null | string;
    nickname: string;
    avatarUrl: string;
    gender: string;
    country: null | string;
    province: null | string;
    city: null | string;
    is_blacklisted: number;
    is_store: number;
    phone: string;
    sex: string;
    created_at: string;
    updated_at: string;
    agent: Agent;
    store: Store;
}

export type {UserInfo, Agent, Store}
